package com.lq.ecoldchain.ui.main.orderlist.order.detail

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/17 0017  14:52
*function by lq
*/
val handleOrderDetailKodeinModule = Kodein.Module("Handle_OrderDetail_Kodein_Module"){
    bind<HandleOrderViewModel>() with scoped(AndroidLifecycleScope).singleton {
        HandleOrderViewModel()
    }

    bind<HandleOrderDetailDelegate>() with scoped(AndroidLifecycleScope).singleton {
        HandleOrderDetailDelegate(instance())
    }
}